home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-04-18 | 17.0 KB | 724 lines | [TEXT/MPS ] |
- /*
- **************************************************************************
- *
- * ODBC 2.0 INSTALL
- *
- **************************************************************************
- */
-
- /* constants for Gestalt call to determine whether PowerMac or 68K CPU */
-
- #define gestaltSystemType 'sysa' // tells Gestalt to check CPU
- #define gestalt68Ksysa 1 // tells Gestalt to look for 68K CPU's
- #define gestaltPPCsysa 2 // tells Gestalt to look for PowerMac CPU's
-
-
- #define kScriptCheckSetsDate 0x01
-
- /*
- **************************************************************************
- *
- * Power Mac Installation definitions.
- *
- **************************************************************************
- */
-
- /*
- * All PowerMac resource ids are in the 5000 range.
- *
- * inrl - Installer Rule
- * inpk - Installer Package
- * infa - Installer File Atom
- * infss - Installer File Spec Source
- * infsd - Installer File Spec Destination
- */
-
- #define kPPCinrl 5000
- #define kPPCinpk 5001
- #define kPPCinfaSetup 5002
- #define kPPCinfssSetup 5003
- #define kPPCinfsdSetup 5004
- #define kPPCinfaDriverManager 5005
- #define kPPCinfssDriverManager 5006
- #define kPPCinfsdDriverManager 5007
- #define kPPCinfaConfigManager 5008
- #define kPPCinfssConfigManager 5009
- #define kPPCinfsdConfigManager 5010
- #define kPPCinfaCursorLibrary 5011
- #define kPPCinfssCursorLibrary 5012
- #define kPPCinfsdCursorLibrary 5013
-
- /*
- * The numbering of the 68k resources has not been altered from the original 1.0
- */
- #define k68kinrl 1000
- #define k68kinpk 3000
-
- /*
- * Installer Frame Rule.
- * The set of changes made here are intended to be integrated with the
- * ASLM installation installer resources.
- *
- * This installer frame rule has been commented out. The frame rule from the
- * ASLM installer script is being used as the master rule and the ODBC Package
- * has been incorporated into it.
- *
- */
- #if 0
- resource 'infr' (0) {
- format0 {
- {/* ODBC PACKAGE ADDITION */
- pickFirst,
- { /* array IntegerArray: 1 elements */
- /* [1] */
- kPPCinrl,
- /* [2] */
- k68kinrl
- }
-
- }
- }
- };
- #endif
-
- /*
- ****************************************************************************
- *
- * The following set of resource definitions are for the Power Mac
- * installation
- *
- ****************************************************************************
- */
-
- /*
- * The following rule is for the PowerMac installation
- */
- resource 'inrl' (kPPCinrl) {
- format0 {{
- /* this returns false unless CPU is Power Macintosh */
- CheckGestalt{ gestaltSystemType, { gestaltPPCsysa }},
-
- /* if Power Macintosh CPU then add both the PowerMac Package and the 68k Package */
- AddPackages{{ kPPCinpk, k68kinpk }},
- AddUserDescription{ "\n• ODBC for PowerMac and ODBC for 680X0." },
- }}
- };
-
- /*
- * The following rule is for the PowerMac installation
- */
- resource 'inpk' (kPPCinpk) {
- format0 {
- showsOnCustom,
- removable,
- dontForceRestart,
- 0,
- 0,
- "ODBC for PowerMac",
- { /* array partsList: 3 elements */
- /* [1] */
- 'infa', kPPCinfaSetup,
- /* [2] */
- 'infa', kPPCinfaDriverManager,
- /* [3] */
- 'infa', kPPCinfaConfigManager,
- /* [4] */
- 'infa', kPPCinfaCursorLibrary
- }
- }
- };
-
- resource 'infa' (kPPCinfaSetup) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- kPPCinfsdSetup,
- kPPCinfssSetup,
- 0,
- ""
- }
- };
-
- resource 'infs' (kPPCinfssSetup) {
- 'cdev',
- 'hack',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Setup PPC"
- };
-
- resource 'infs' (kPPCinfsdSetup) {
- 'cdev',
- 'hack',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-ctrl:ODBC Setup PPC"
- };
-
-
- resource 'infa' (kPPCinfaDriverManager) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- kPPCinfsdDriverManager,
- kPPCinfssDriverManager,
- 0,
- ""
- }
- };
-
- resource 'infs' (kPPCinfssDriverManager) {
- 'shlb',
- 'cfmg',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Driver Manager PPC"
- };
-
- resource 'infs' (kPPCinfsdDriverManager) {
- 'shlb',
- 'cfmg',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-extn:ODBC Driver Manager PPC"
- };
-
-
- resource 'infa' (kPPCinfaConfigManager) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- kPPCinfsdConfigManager,
- kPPCinfssConfigManager,
- 0,
- ""
- }
- };
-
- resource 'infs' (kPPCinfssConfigManager) {
- 'shlb',
- 'cfmg',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Configuration Manager PPC"
- };
-
- resource 'infs' (kPPCinfsdConfigManager) {
- 'shlb',
- 'cfmg',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-extn:ODBC Configuration Manager PPC"
- };
-
- resource 'infa' (kPPCinfaCursorLibrary) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- kPPCinfsdCursorLibrary,
- kPPCinfssCursorLibrary,
- 0,
- ""
- }
- };
-
- resource 'infs' (kPPCinfssCursorLibrary) {
- 'shlb',
- 'cfmg',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Cursor Library PPC"
- };
-
- resource 'infs' (kPPCinfsdCursorLibrary) {
- 'shlb',
- 'cfmg',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-extn:ODBC Cursor Library PPC"
- };
-
-
-
-
- /*
- ****************************************************************************
- *
- * The following set of definitions are for the 68k installation
- * and original ODBC 1.0 definitions.
- *
- ****************************************************************************
- */
-
- /* source disks */
- #define dASLMInstall "ASLM Installer"
- #define dODBCInstall "ODBC Install"
-
- #define dODBCTools "ODBC Tools"
- #define Folder1 "SampleSetup"
- #define Folder2 "SampleTranslate"
- #define Folder3 "SampleDriver"
- #define ODBCTest "ODBC Test"
- #define Driver "ODBC Sample Driver"
- #define Setup "ODBC Sample DBMS Setup"
- #define Translate "ODBC Sample Data Translate"
- #define ODBCapp "ODBC Test"
-
- #define pkODBCTools 9000
-
- #define faSampleDriver 10100
- #define faSampleDBMSSetup 10110
- #define faSampleDataTranslate 10120
- #define faODBCapp 10130
-
- #define fsSrcSampleDriver 10200
- #define fsSrcSampleSetup 10210
- #define fsSrcSampleTranslate 10220
- #define fsSrcODBCapp 10230
-
- #define fsTargetSampleDriver 10300
- #define fsTargetSampleSetup 10310
- #define fsTargetSampleTranslate 10320
- #define fsTargetODBCapp 10330
-
- #define DiskOrder 999 /* definition for 'indo' resource ID */
- #define pkDivider1 1
- #define pkDivider2 2
-
- resource 'invs' (1) {
- format0 {
- 0x3,
- 0x40,
- release,
- 0x0,
- "3.4"
- }
- };
-
- #if 0
- resource 'invs' (1) {
- format0 {
- 0x4,
- 0x03,
- release,
- 0x0,
- "4.0.3"
- }
- };
- #endif
-
- resource 'indo' (DiskOrder) {
- format0 {{
- "ODBC Install",
- "ODBC Tools"
- }};
- };
-
- /*
- * The following rule is for the 68k installation
- */
- resource 'inrl' (k68kinrl) {
- format0 {
- { /* array Rules: 2 elements */
-
- /* [2] */
- addPackages
- {
- { /* array IntegerArray: 1 elements */
- /* [1] */
- 3000
- }
- },
- AddUserDescription{ "\n• ODBC for 680X0." },
- }
- }
- };
-
- #if 0
- resource 'inpk' (pkDivider1) {
- format0 {
- showsOnCustom, /* Package appears in the Custom Install display */
- notRemovable, /* Package can't be removed */
- dontForceRestart, /* divider doesnt require rebooting */
- 0, /* 'icmt' not required */
- 0, /* Package size (filled in by ScriptCheck) */
- "-", {' ', 0; } /* package name - divider */
- }
- };
- #endif
-
- resource 'inpk' (3000) {
- format0 {
- showsOnCustom,
- removable,
- dontForceRestart,
- 0,
- 0,
- "ODBC",
- { /* array partsList: 3 elements */
- /* [1] */
- 'infa', 4000,
- /* [2] */
- 'infa', 4001,
- /* [3] */
- 'infa', 4002,
- /* [4] */
- 'infa', 4003
- }
- }
- };
-
- #ifdef DEVELOP
- resource 'inpk' (pkDivider2) {
- format0 {
- showsOnCustom, /* Package appears in the Custom Install display */
- notRemovable, /* Package can't be removed */
- dontForceRestart, /* divider doesnt require rebooting */
- 0, /* 'icmt' not required */
- 0, /* Package size (filled in by ScriptCheck) */
- "-", {' ', 0 } /* package name - divider */
- }
- };
- #endif
-
- resource 'infs' (2000) {
- 'cdev',
- 'hack',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Setup"
- };
-
- resource 'infs' (2001) {
- 'cdev',
- 'hack',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-ctrl:ODBC Setup"
- };
-
- resource 'infs' (2002) {
- 'libr',
- 'OMGR',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Driver Mana"
- "ger"
- };
-
- resource 'infs' (2003) {
- 'libr',
- 'OMGR',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-extn:ODBC Driver Manager"
- };
-
- resource 'infs' (2004) {
- 'libr',
- 'OMGR',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Configurati"
- "on Manager"
- };
-
- resource 'infs' (2005) {
- 'libr',
- 'OMGR',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-extn:ODBC Configuration Manager"
- };
-
- resource 'infs' (2006) {
- 'libr',
- 'OMGR',
- kScriptCheckSetsDate,
- noSearchForFile,
- TypeCrMustMatch,
- "ODBC Install:ODBC Files:ODBC Cursor Libr"
- "ary"
- };
-
- resource 'infs' (2007) {
- 'libr',
- 'OMGR',
- 0x0,
- noSearchForFile,
- TypeCrMustMatch,
- "special-extn:ODBC Cursor Library"
- };
-
- resource 'infa' (4000) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- 2001,
- 2000,
- 0,
- ""
- }
- };
-
- resource 'infa' (4001) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- 2003,
- 2002,
- 0,
- ""
- }
- };
-
- resource 'infa' (4002) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- 2005,
- 2004,
- 0,
- ""
- }
- };
-
- resource 'infa' (4003) {
- format0 {
- deleteWhenRemoving,
- deleteWhenInstalling,
- copy,
- updateEvenIfNewer,
- updateExisting,
- copyIfNewOrUpdate,
- rsrcFork,
- dataFork,
- 2007,
- 2006,
- 0,
- ""
- }
- };
-
-
-
- //data 'incd' (0) {
- // $"A85F 183D" /* ®_.= */
- //};
-
- /**************************ODBC TOOLS INSTALL ***************************************************/
-
- /***************************** Package Resources ************************************************/
- #ifdef DEVELOP
- resource 'inpk' (pkODBCTools) {
- format0 {
- showsOnCustom, /* Package appears in the Custom Install display */
- removable, /* Package can be removed */
- dontForceRestart, /* installing an app doesnt require rebooting */
- 0, /* 'icmt' not required */
- 0, /* Package size (filled in by ScriptCheck) */
- "ODBC Tools", { /* package name */
- 'infa', faSampleDriver,
- 'infa', faSampleDBMSSetup,
- 'infa', faSampleDataTranslate,
- 'infa', faODBCapp
- }
- }
- };
-
- /********************************************* File Specs ***************************************/
- /* Source File Specs */
- resource 'infs' (fsSrcSampleDriver) {
- 'libr', /* File Type */
- 'OMGR', /* Creator */
- kScriptCheckSetsDate, /* ScriptCheck will fill in the creation date */
- noSearchForFile, /* Do not search the source disk for the file */
- typeCrMustMatch, /* file type and creator on this file must match */
- dODBCTools":"Folder3":"Driver /* Path to the file */
- };
-
- resource 'infs' (fsSrcSampleSetup) {
- 'libr', /* File Type */
- 'OMGR', /* Creator */
- kScriptCheckSetsDate, /* ScriptCheck will fill in the creation date */
- noSearchForFile, /* Do not search the source disk for the file */
- typeCrMustMatch, /* file type and creator on this file must match */
- dODBCTools":"Folder1":"Setup /* installation Path */
- };
-
- resource 'infs' (fsSrcSampleTranslate) {
- 'libr', /* File Type */
- 'OMGR', /* Creator */
- kScriptCheckSetsDate, /* ScriptCheck will fill in the creation date */
- noSearchForFile, /* Do not search the source disk for the file */
- typeCrMustMatch, /* file type and creator on this file must match */
- dODBCTools":"Folder2":"Translate /* installation Path */
- };
-
- resource 'infs' (fsSrcODBCapp) {
- 'APPL', /* File Type */
- 'XXXX', /* Creator */
- kScriptCheckSetsDate, /* ScriptCheck will fill in the creation date */
- noSearchForFile, /* Do not search the source disk for the file */
- typeCrMustMatch, /* file type and creator on this file must match */
- dODBCTools":"ODBCTest":"ODBCapp /* Path to the file */
- };
-
- /* Target File Specs */
- resource 'infs' (fsTargetSampleDriver) {
- 'libr', /* File Type */
- 'OMGR', /* Creator */
- 0, /* not needed for target file spec */
- noSearchForFile, /* Do not search the target disk for the file */
- typeCrMustMatch, /* not needed for target file specs */
- "special-extn:"Driver /* Path to the file */
- };
-
- resource 'infs' (fsTargetSampleSetup) {
- 'libr', /* File Type */
- 'OMGR', /* Creator */
- 0, /* not needed for target file spec */
- noSearchForFile, /* Do not search the target disk for the file */
- typeCrMustMatch, /* not needed for target file specs */
- "special-extn:"Setup /* installation Path */
- };
-
- resource 'infs' (fsTargetSampleTranslate) {
- 'libr', /* File Type */
- 'OMGR', /* Creator */
- 0, /* not needed for target file spec */
- noSearchForFile, /* Do not search the target disk for the file */
- typeCrMustMatch, /* not needed for target file specs */
- "special-extn:"Translate /* installation Path */
- };
-
- resource 'infs' (fsTargetODBCapp) {
- 'APPL', /* File Type */
- 'XXXX', /* Creator */
- kScriptCheckSetsDate, /* ScriptCheck will fill in the creation date */
- noSearchForFile, /* Do not search the source disk for the file */
- typeCrMustMatch, /* file type and creator on this file must match */
- ":"ODBCapp /* installation Path */
- };
-
- /******************************************** File Atoms ************************************************/
- resource 'infa' (faSampleDriver) {
- format0 {
- deleteWhenRemoving, /* Delete the file if remove (option-custom) is clicked */
- dontDeleteWhenInstalling, /* don't need to predelete the target before copying new one */
- copy, /* Copy the file to the destination */
- leaveAloneIfNewer, /* do not Install this version, if newer one exists */
- updateExisting, /* replace an existing copy, if mine is newer */
- copyIfNewOrUpdate, /* Copy whether the target file exists or not */
- rsrcFork, dataFork, /* Copy both forks of the file */
- fsTargetSampleDriver, /* TARGET file spec */
- fsSrcSampleDriver, /* SOURCE file spec */
- 0, /* atom size (filled in by ScriptCheck) */
- "" /* Atom Description (for a file Installer will use file name) */
- };
- };
-
- resource 'infa' (faSampleDBMSSetup) {
- format0 {
- deleteWhenRemoving, /* Delete the file if remove (option-custom) is clicked */
- dontDeleteWhenInstalling, /* don't need to predelete the target before copying new one */
- copy, /* Copy the file to the destination */
- leaveAloneIfNewer, /* do not Install this version, if newer one exists */
- updateExisting, /* replace an existing copy, if mine is newer */
- copyIfNewOrUpdate, /* Copy whether the target file exists or not */
- rsrcFork, dataFork, /* Copy both forks of the file */
- fsTargetSampleSetup, /* TARGET file spec */
- fsSrcSampleSetup, /* SOURCE file spec */
- 0, /* atom size (filled in by ScriptCheck) */
- "" /* Atom Description (for a file Installer will use file name) */
- };
- };
-
- resource 'infa' (faSampleDataTranslate) {
- format0 {
- deleteWhenRemoving, /* Delete the file if remove (option-custom) is clicked */
- dontDeleteWhenInstalling, /* don't need to predelete the target before copying new one */
- copy, /* Copy the file to the destination */
- leaveAloneIfNewer, /* do not Install this version, if newer one exists */
- updateExisting, /* replace an existing copy, if mine is newer */
- copyIfNewOrUpdate, /* Copy whether the target file exists or not */
- rsrcFork, dataFork, /* Copy both forks of the file */
- fsTargetSampleTranslate, /* TARGET file spec */
- fsSrcSampleTranslate, /* SOURCE file spec */
- 0, /* atom size (filled in by ScriptCheck) */
- "" /* Atom Description (for a file Installer will use file name) */
- };
- };
-
- resource 'infa' (faODBCapp) {
- format0 {
- deleteWhenRemoving, /* Delete the file if remove (option-custom) is clicked */
- dontDeleteWhenInstalling, /* don't need to predelete the target before copying new one */
- copy, /* Copy the file to the destination */
- leaveAloneIfNewer, /* do not Install this version, if newer one exists */
- updateExisting, /* replace an existing copy, if mine is newer */
- copyIfNewOrUpdate, /* Copy whether the target file exists or not */
- rsrcFork, dataFork, /* Copy both forks of the file */
- fsTargetODBCapp, /* TARGET file spec */
- fsSrcODBCapp, /* SOURCE file spec */
- 0, /* atom size (filled in by ScriptCheck) */
- "" /* Atom Description (for a file Installer will use file name) */
- };
- };
- #endif